package com.spider.spiderorderadmin.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spider.spiderorderadmin.common.Result;
import com.spider.spiderorderadmin.entity.model.OperationRecord;
import com.spider.spiderorderadmin.entity.param.OperationLogQueryParam;
import com.spider.spiderorderadmin.service.OperationLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2021/1/23 10:45
 */
@Api(tags = "操作日志")
@RequestMapping("/system/operationLog")
@RestController
public class OperationLogController {


    @Resource
    private OperationLogService operationLogService;

    @ApiOperation("操作日志列表")
    @GetMapping
    public Result<Page<OperationRecord>> list(OperationLogQueryParam queryParam) {
        return Result.of(operationLogService.findOperationRecordList(queryParam));
    }


}
